package org.firebug.spring.boot.logback.kafka.dao;

import org.firebug.spring.boot.logback.kafka.bean.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

@Repository
public class UserDAO {
    private static Logger logger = LoggerFactory.getLogger("sql");

    public User queryById(Long id) {
        String sql = "select * from t_user where id=?";
        logger.info("{} {{}}", sql, id);
        return new User(id, "felix");
    }
}
